package com.dotflat.physicalevaluate.vo;

import com.dotflat.physicalevaluate.domain.pe.PERecord;
import com.dotflat.physicalevaluate.domain.pe.RelRecordMeasure;
import com.tuo51.foudation.utils.CopyUtils;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 测量标准
 */
@Data
public class PERecordVO implements Serializable {
    private String id;

    private Date created;

    private String evaluateType;

    private String childrenId;

    private String childrenName;

    private Integer gender;

    private Date birthday;

    private Integer month ;

    private Integer status ;

    private String advise;

    private String createTeacherId;

    private String createTeacherName;

    private String orgId;

    private String rating;

    private int dq;

    private Long duration;

    private Date evaluatingDate;

    private Integer category ;

    //测评是不是已经完成了所有维度的填写
    private Boolean finished ;

    private Boolean paid ;

    private Boolean parentGranted ;

    //测评发布状态
    private Boolean published ;

    private String skipDiemnsions;

    private String weight;

    private String height;

    private String header;

    private List<RelRecordMeasure> rels;

    public static PERecordVO of(PERecord obj){
        PERecordVO ret = new PERecordVO();

        CopyUtils.copyProperties(obj, ret);

        return ret;
    }
}